<?php

	error_reporting(0);
	session_start();
	error_reporting(1);
	
	set_magic_quotes_runtime(FALSE);
	
	require_once "../common/PinSQL.obj";;
	$pinSQL = new PinSQL();
  
	// delete the specified comment
	$commentid = $_POST["commentid"];
	
	$me = $_SESSION['username'];
	
	mysql_query("DELETE FROM buzz
	WHERE id = '$commentid' AND touser = '$me'")
	or die(mysql_error());
	
	$username = $_SESSION['destuser'];
	include("gen_buzz.php");
	
	mysql_close();
?>